package com.by.bean;

import com.by.common.group.ISave;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;


@Data
@ApiModel("客户")
public class Customer {

 @ApiModelProperty("客户id，修改时不允许为空！")
 int id;

 @ApiModelProperty("市场: 1 内销   2 外销")
 int market;

 @ApiModelProperty("省市区或国家")
 String country;

 @ApiModelProperty(value = "客户公司名称", required = true)
 String company;

 @ApiModelProperty("成交或询价产品")
 String product;

 @ApiModelProperty("感兴趣的产品")
 String interestProduct;

 @ApiModelProperty("感兴趣的产品id")
 int interestPid;

 @ApiModelProperty("机型")
 String model;

 @ApiModelProperty("客户联系人")
 String contactName;

 @ApiModelProperty("联系人手机号")
 String mobile;

 @ApiModelProperty("客户邮箱")
 String customer_email;

 @ApiModelProperty("老板")
 String boss;
 @ApiModelProperty("老板手机号")
 String boss_phone;

 @ApiModelProperty("老板邮箱")
 String boss_email;
 @ApiModelProperty("联系地址")

 String address;

 @ApiModelProperty("客户目的港口")
 String target_port;

 @ApiModelProperty("客户分类id")
 int cid;

 @ApiModelProperty("客户类型")
 int customer_type;

 @ApiModelProperty("公司简介")
 String company_profile;

 @ApiModelProperty("客户目的地")
 String destination;

 @ApiModelProperty("快递地址")
 String dourier_address;

 @ApiModelProperty("目的地和快递地是否一致: 0  不一致  1 一致")
 int isFit;

 @ApiModelProperty("所属销售")
 int saleId;

 @ApiModelProperty("密码验证手机号")
 String validMobile;

 @ApiModelProperty("客户来源:1 销售添加\n" +
         "2 客户注册\n" +
         "3管理员添加")
 int source;

 @ApiModelProperty("账号")
 @NotBlank(message = "账号不能为空！", groups = {ISave.class})
 String account;

 @ApiModelProperty("密码")
 @NotBlank(message = "密码不能为空！", groups = {ISave.class})
 String password;
}
